﻿@{
    ViewBag.Title = "WareHouseUnqualifiedCheck";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}

 

<script>
    $(function () {
        initControl();
        gridList();
    });
    function initControl() {
        $('select').bindSelect();
    }
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            //url: "/SystemManage/User/GetGridJson",
            height: $(window).height() - 200,
            colModel: [
                        { label: "来料单位", name: "F_Id", width: 120, align: 'left' },
                        { label: "来料单位名称", name: "F_ModuleId", width: 120, align: 'left' },
                        { label: '入库日期', name: 'F_FullName', width: 100, align: 'left' },
                        { label: '来料编号', name: 'F_Location', width: 80, align: 'left' },
                        { label: '来料名称', name: 'F_JsEvent', width: 100, align: 'left' },
                        { label: '批次号', name: 'F_Split', width: 100, align: 'left' },
                        { label: '开票数量', name: 'F_Split', width: 80, align: 'left' },
                        { label: '实际数量', name: 'F_IsPublic', width: 80, align: 'left' },
                        { label: '仓库编号', name: 'F_AllowEdit', width: 80, align: 'left' },
                        { label: '库位名称', name: 'F_AllowDelete', width: 80, align: 'left' },
                        { label: '容器编号', name: 'F_AllowEdit', width: 80, align: 'left' },
                        { label: '容器名称', name: 'F_AllowDelete', width: 80, align: 'left' },

                        { label: '容器数量', name: 'F_Split', width: 80, align: 'left' },
                        { label: '实际装箱', name: 'F_Split', width: 80, align: 'left' },
                        { label: '标准装箱', name: 'F_IsPublic', width: 80, align: 'left' },
                        { label: '托盘编号', name: 'F_AllowEdit', width: 80, align: 'left' },
                        { label: '托盘数量', name: 'F_AllowDelete', width: 80, align: 'left' },

                        { label: '实际容量', name: 'F_Split', width: 80, align: 'left' },
                        { label: '标准容量', name: 'F_Split', width: 80, align: 'left' },
                        { label: '凭证编号', name: 'F_IsPublic', width: 80, align: 'left' },
                        { label: '备注', name: 'F_AllowEdit', width: 80, align: 'left' },
                        { label: '供货单位', name: 'F_AllowDelete', width: 80, align: 'left' },

                        { label: '供货单位名称', name: 'F_UrlAddress', width: 80, align: 'left' },
                        { label: '零件状态', name: 'F_Split', width: 80, align: 'left' },
                        { label: '是否烫标', name: 'F_IsPublic', width: 80, align: 'left' },
                        { label: '是否托盘', name: 'F_AllowEdit', width: 80, align: 'left' },
                        { label: '是否打包', name: 'F_AllowDelete', width: 80, align: 'left' },
                        { label: '输入人员', name: 'F_Split', width: 80, align: 'left' },
                        { label: '输入日期', name: 'F_IsPublic', width: 80, align: 'left' },
                        { label: '输入时间', name: 'F_AllowEdit', width: 80, align: 'left' },
            ],
            //pager: "#gridPager",
            sortname: 'F_DepartmentId asc,F_CreatorTime desc',
            viewrecords: true
        });
        $("#btn_search").click(function () {
            $gridList.jqGrid('setGridParam', {
                postData: { keyword: $("#txt_keyword").val() },
            }).trigger('reloadGrid');
        });
    }
    function btn_Ok() {
        parent.$.detailClose();
    }
    function btn_Return() {
        parent.$.detailClose();
    }
</script>
<div class="ui-layout" id="layout" style="height: 100%; width: 100%;">
    <div class="ui-layout-center">
        <form id="form1">
            <div style="padding-top: 1px;margin-left:10px;">
                <table class="form" style="width:97%;text-align:left;margin:0px;margin-top:-20px;margin-bottom:-3px; border-bottom:2px solid #ccc;">
                    <tr>
                        <td style="width:97%; padding: 5px 10px;">
                            <div class="btn-group" style="margin-left:500px;margin-bottom:-10px;">
                                <h2 style="font-family:隶书;font-weight:bold;font-size:26px">审核单</h2>
                            </div>
                            <div class="btn-group" style="margin-left:470px;margin-bottom:-25px;">
                                <a id="" class="btn btn-primary center-block " onclick="btn_Ok()"><span class="glyphicon glyphicon-ok"></span> 确认</a>
                            </div>
                            <div class="btn-group" style="margin-left:30px;margin-bottom:-25px;">
                                <a id="" class="btn btn-primary center-block  " onclick="btn_Return()"><span class="glyphicon glyphicon-remove"></span> 返回</a>
                            </div>
                        </td>
                    </tr>
                </table>
                <table class="form" style="margin-top:10px;">
                    <tr>
                        <th class="formTitle" style="width:50px;">&nbsp;</th>
                        <td class="formValue" style="width:56px;">
                            &nbsp;
                        </td>
                        <th class="formTitle" style="width:100px;">单据编号</th>
                        <td class="formValue" style="width:160px;">
                            <input id="" type="text" class="form-control required" value="" />
                        </td>
                        <th class="formTitle" style="width:100px;">&nbsp;</th>
                        <td class="formValue" style="width:160px;">
                            &nbsp;
                        </td>
                        <th class="formTitle" style="width:100px;">&nbsp;</th>
                        <td class="formValue" style="width:160px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle" style="width:100px;">&nbsp;</th>
                        <td class="formValue" style="width:160px;">
                            &nbsp;
                        </td>
                        <th class="formTitle" style="width:100px;">备件编号</th>
                        <td class="formValue" style="width:160px;">
                            <input id="" type="text" class="form-control required" value="" />
                        </td>
                        <th class="formTitle" style="width:100px;">实际数量</th>
                        <td class="formValue">
                            <input id="" name="" type="text" class="form-control " style="width:160px;" /><label class="suffix">个</label>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle" style="width:50px;">&nbsp;</th>
                        <td class="formValue" style="width:80px;">
                            &nbsp;
                        </td>
                        <th class="formTitle" style="width:100px;">备件名称</th>
                        <td class="formValue" style="width:160px;">
                            <input id="" type="text" class="form-control required" value="" />
                        </td>
                        <th class="formTitle" style="width:100px;">容器数量</th>
                        <td class="formValue">
                            <input id="" name="" type="text" class="form-control " style="width:160px;" /><label class="suffix">箱</label>
                        </td>
                    </tr>
                </table>
            </div>
        </form>
        <br />
        <div style="">
            <table id="gridList"></table>
        </div>
    </div>
</div>
